<?php

use Drupal\shusy_topic\Entity\ShusyTopic;

function shusy_topic_shusy_topic_add_page() {
  $e = new ShusyTopic();
  module_load_include('inc', 'shusy_topic', 'shusy_topic.forms');
  return drupal_get_form('shusy_topic_shusy_topic_entity_form', $e, 'add');
}

function shusy_topic_shusy_topic_view_page(ShusyTopic $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_topic_shusy_topic_edit_page(ShusyTopic $e) {
  module_load_include('inc', 'shusy_topic', 'shusy_topic.forms');
  return drupal_get_form('shusy_topic_shusy_topic_entity_form', $e, 'edit');
}

function shusy_topic_shusy_topic_delete_page(ShusyTopic $e) {
  module_load_include('inc', 'shusy_topic', 'shusy_topic.forms');
  return drupal_get_form('shusy_topic_shusy_topic_delete_form', $e);
}

